package com.zhuiyun.project.api.recipe.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhuiyun.project.api.recipe.entity.Recipe;
import com.zhuiyun.project.api.recipe.model.RecipeModel;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper
public interface RecipeMapper extends BaseMapper<Recipe> {
    List<RecipeModel> getRevipeByPage(RecipeModel recipeModel);

    Integer addRecipe(RecipeModel recipeModel);

    Integer updateRecipe(RecipeModel recipeModel);

    Integer deleteRecipe(Integer id);
}
